@page
@model IndexModel
@using FytSoa.Application.Exam
@using FytSoa.Common.Param
@inject ExamTeacherService _teacherService
@{
    ViewData["Nav"] = 4;
    ViewData["Title"] = "讲师";
    var teacherList = await _teacherService.GetPagesAsync(new PageParam());
}
<div class="main_content_inner">
        <div class="section-small pt-2">
            <h3> 讲师 </h3>
            <ul class="uk-child-width-1-5@m uk-child-width-1-3@s uk-grid">
                @{
                    foreach (var item in teacherList.Items)
                    {
                        <li>
                            <a href="/lecturer/single/@item.Id">
                                <div class="single-channal">
                                    <div class="single-channal-creator">
                                        <img src="@item.Avatar.UrlReplace()" alt="@Html.Raw(item.Name)">
                                    </div>
                                    <div class="single-channal-body">
                                        <h4>@Html.Raw(item.Name) </h4>
                                        <p> @Html.Raw(item.PostName) - @Html.Raw(item.ProfessionCode.Name) </p>
                                        <a href="/lecturer/single/@item.Id" class="button soft-primary small circle"> <i class="uil-bell"></i> 详情 </a>
                                    </div>
                                </div>
                            </a>
                        </li>
                    }
                }
            </ul>
            </div>

    </div>